/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-04-29 13:38:45
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-05-23 13:44:20
 */
import request from '@/utils/request'

// 查询证书信息列表
export function listCertInfo(query) {
  return request({
    url: '/cert/certInfo/list',
    method: 'get',
    params: query
  })
}

export function allListCertInfo(data) {
  return request({
    url: '/cert/certInfo/allList',
    method: 'post',
    data: data
  })
}

// 查询证书信息详细
export function getCertInfo(id) {
  return request({
    url: '/cert/certInfo/' + id,
    method: 'get'
  })
}

// 新增证书信息
export function addCertInfo(data) {
  return request({
    url: '/cert/certInfo',
    method: 'post',
    data: data
  })
}

// 修改证书信息
export function updateCertInfo(data) {
  return request({
    url: '/cert/certInfo',
    method: 'put',
    data: data
  })
}

// 删除证书信息
export function delCertInfo(id) {
  return request({
    url: '/cert/certInfo/' + id,
    method: 'delete'
  })
}

// 导出证书信息
export function exportCertInfo(query) {
  return request({
    url: '/cert/certInfo/export',
    method: 'get',
    params: query
  })
}
// 更换负责人
export function changeDirector(query) {
  return request({
    url: '/cert/certInfo/changeDirector',
    method: 'get',
    params: query
  })
}
// 导入
export const importType = data => {
  return request({
    method: 'post',
    url: '/cert/certInfo/importType',
    data
  })
}

